﻿@model Alabama.Config
<h3>
    Sửa @Model.Title</h3>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@Html.ValidationSummary(true, "Sửa không thành công")
@using (Html.BeginForm("DoEdit", "Home", Model))
{
    <div>
        <div class="control-group">
             
            <div class="controls">
               Tên cấu hình:  @Html.DisplayTextFor(m=>m.Key)
            </div>
              
            <div class="controls">
            Multiline   @Html.CheckBoxFor(m => m.Multiline, new {@class="MultileCheck"})
            </div>
            <label class="control-label">
                Key</label>
            <div class="controls">
            @if (Model.Multiline)
            {
                @Html.TextAreaFor(m=>m.Title);
            }
            else
            {
                @Html.TextBoxFor(m => m.Title);  
            }             
            </div>
            <input type="submit" value="OK" class="btn btn-primary"/>
            <button type="button" class="btn" onclick="javascript:window.history.go(-1);">
                Hủy</button>
        </div>
    </div>
}